PICTools Programmer's Reference
Remove Combs

Removes combs from 1 bit images. A comb is a horizontal line with vertical marks at uniform spaces. Text that intersects part of the comb will be reconstructed.

CombRemovalBefore  →  Description: Description: Description: CombRemovalAfter

The uncompressed image to be processed must reside in the Get Queue prior to REQ_EXEC. Typically, the image will be fully contained in the Get Queue, but that is not a requirement. The output image will be placed into the Put Queue during REQ_EXEC.

This opcode can be instructed to operate on a subset of the image using the RectX/Y/Width/Height parameters of the SCANFIX by setting the PF2_ActOnRectangle flag.

Padding pixels present at the end of each line may be modified by this operation.

This operation relies primarily on three parameters to select the areas to remove: minimum area width, minimum area height, and maximum dot size. All three criteria must be true of an area for it to be removed.

In addition to placing an output image into the Put Queue, this operation stores some output information into the PIC_PARM structure in the following locations.

If the ReportingDatafield is set to point to a ScanFixReportDatainstance, then the defer function will be called with a value of RES_QUERYfor every comb detected in the image.  The ScanFixReportData.Subcode will be set to SF_SUBCODE_REMOVE_COMBS, and ScanFixReportData.u.ComData will contain information about the currently selected comb.  If the comb is to be deleted, then ScanFixReportData.u.CombData.DeleteCombshould be set to a non-zero value.  If ScanFixReportData.Stopis set to a non-zero value, then the defer function will not be called for any subsequent combs in the image, and all remaining combs will be left in the image.

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback